<#include "../head.ftl">
<div class="page_title">客户构成分析</div>
<div class="button_bar">
    <button class="common_button" onclick="help('');">帮助</button>
    <button class="common_button" onclick="document.forms[0].submit();">查询</button>
</div>
<form action="${base}/rept/cons" method="post">
<table class="query_form_table">
    <tr>
        <th>报表方式</th>
        <td>
            <select name="type">
                <option value="企业客户等级">按等级</option>
                <option value="客户信用度">按信用度</option>
                <option value="客户满意度">按满意度</option>
            </select>
        </td>

        <th>&nbsp;</th>
        <td>
            &nbsp;
        </td>
    </tr>
</table>
<br />
</form>
<table class="data_list_table">
    <tr>
        <th>编号</th>
        <th>${type}</th>
        <th>客户数量</th>
    </tr>

    <#list consList as cons>
        <tr>
            <td class="list_data_number">${cons.id}</td>
            <td class="list_data_text">
            <#if cons.items=='1'>
                <img src="${base}/images/star.jpg" class="star_pic" />
            <#elseif cons.items=='2'>
                <img src="${base}/images/star.jpg" class="star_pic" />
                <img src="${base}/images/star.jpg" class="star_pic" />
            <#elseif cons.items=='3'>
                <img src="${base}/images/star.jpg" class="star_pic" />
                <img src="${base}/images/star.jpg" class="star_pic" />
                <img src="${base}/images/star.jpg" class="star_pic" />
            <#elseif cons.items=='4'>
                <img src="${base}/images/star.jpg" class="star_pic" />
                <img src="${base}/images/star.jpg" class="star_pic" />
                <img src="${base}/images/star.jpg" class="star_pic" />
                <img src="${base}/images/star.jpg" class="star_pic" />
            <#elseif cons.items=='5'>
                <img src="${base}/images/star.jpg" class="star_pic" />
                <img src="${base}/images/star.jpg" class="star_pic" />
                <img src="${base}/images/star.jpg" class="star_pic" />
                <img src="${base}/images/star.jpg" class="star_pic" />
                <img src="${base}/images/star.jpg" class="star_pic" />
            <#else>
                ${cons.items}
            </#if>
            </td>
            <td class="list_data_number">${cons.number}</td>
        </tr>
    </#list>
</table>
</body>
</html>